#!/bin/bash

read -r -p "Do you want to receive(r) or send(s)? [r/s] " input

case $input in
    [rR][eE][cC][eE][iI][vV][eE]|[rR])
 rsync -av gdm_gidm@ssh.phx.nearlyfreespeech.net:/home/public/* ./
 ;;
    [sS][eE][nN][dD]|[sS])
 rsync -av ./ gdm_gidm@ssh.phx.nearlyfreespeech.net:/home/public
 ;;
    *)
 echo "Invalid input..."
 exit 1
 ;;
esac

